cmake_minimum_required(VERSION 3.0.2)
project(savior_switcher)

## 查找catkin宏和库
find_package(catkin REQUIRED COMPONENTS
  rospy
  geometry_msgs
  sensor_msgs
  tf2_sensor_msgs
)

###################################
## catkin特定配置 ##
###################################

catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES savior_switcher
  CATKIN_DEPENDS rospy geometry_msgs sensor_msgs tf2_sensor_msgs
#  DEPENDS system_lib
)

###########
## 构建 ##
###########

## 指定额外的头文件位置
include_directories(
# include
  ${catkin_INCLUDE_DIRS}
)

#############
## 安装 ##
#############

# 安装Python脚本
catkin_install_python(PROGRAMS
  scripts/multi_laser_to_pointcloud.py
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

## 安装launch文件
install(DIRECTORY launch/
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
  PATTERN ".svn" EXCLUDE) 